let param = location.href.split("/")
let slice = param[param.length - 1].split(".")
let type = slice[0]

types = {
    ''  : 'supply',
    'supply' : 'supply',
    'supplylast' : 'supply',
    'supplylow' : 'supply',
    'supplyhigh' : 'supply',
    'demand' : 'demand',
    'demandlast' : 'demand',
    'demandlow' : 'demand',
    'demandhigh' : 'demand',
}

switch (types[type]) {
    case "supply":
        $("#supply-title").css("color", "#61B736")
        break;
    case "demand":
        $("#demand-title").css("color", "#61B736")
        break;
    default:
        $("#supply-title").css("color", "#61B736")
}
//选项卡
type_2 = param[param.length - 1].replace('.html', '').replace('supply', '').replace('demand', '');
switch (type_2) {
    case "rec":
    case "last":
    case "low":
    case "high":
        $("#" + type_2).addClass('sd-tabs-active');
        break;
    default:
        $("#rec").addClass('sd-tabs-active');
}

